<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>平台名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="平台名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td width="135" align="right"><span class="color_red">*</span>所在地点：</td>
		<td colspan="1"><input name="proposal/address" label="所在地点"
			type="text" required class="input_css required maxlength:100"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
			<td  align="right" nowrap><span class="color_red">*</span>认定时间：</td>
		<td >
			<c:set var="rd_date"><x:out select="$xmlData/data/proposal/rd_date" /></c:set>
			<cpt:date id="rd_date" name="proposal/rd_date" value="${rd_date}" className="required date" label="认定时间" ></cpt:date> 
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>认定部门：</td>
		<td nowrap  valign="middle">
		<input name="proposal/part_identified_name" id="part_identified_name" value="<x:out select="$xmlData/data/proposal/part_identified_name" />" class="required"
			label="认定部门" />
		</td>
		<td align="right"><span class="color_red">*</span>认定级次：</td>
		<td nowrap valign="middle"><label> 
			<input type="radio" class="do " id="level_identified_01" style="vertical-align: middle;" name="level_identified" label="国家级"
				value="01" /><span style="vertical-align: middle;">国家级</span></label> 
		<label> 
		<input type="radio" class="do " id="level_identified_02" style="vertical-align: middle;" name="level_identified" label="省级"
				value="02" /><span style="vertical-align: middle;">省级</span></label> 
		<input type="radio" class="do " id="level_identified_03" style="vertical-align: middle;" name="level_identified" label="市级"
				value="03" /><span style="vertical-align: middle;">市级</span></label> 
		<input type="hidden" name="proposal/level_identified_value" id="identified_value" class="required" value="<x:out select="$xmlData/data/proposal/level_identified_value" />"
			label="认定级次" /> 
		<input type="hidden" name="proposal/level_identified_name" id="level_identified_name" value="<x:out select="$xmlData/data/proposal/level_identified_name" />"
			label="认定级次" />
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>平台类别：</td>
		<td nowrap colspan="3" valign="middle">
		<label> <input type="radio" class="do " id="ptcategory_01"  onchange="changePTCategory();"	style="vertical-align: middle;" name="ptcategory" label="技术服务 "
				value="01" /><span style="vertical-align: middle;">技术服务 </span></label> 
				<label><input type="radio" class="do " id="ptcategory_02" onchange="changePTCategory();" style="vertical-align: middle;" name="ptcategory" label="公共服务"
				value="02" /><span style="vertical-align: middle;">公共服务</span>
		</label> <label> <input type="radio" class="do " id="ptcategory_03"  onchange="changePTCategory();"
				style="vertical-align: middle;" name="ptcategory" label="其他"
				value="03" /><span style="vertical-align: middle;">其他</span></label> 
				<input type="text" style="display: none" id="ptcategory" name="proposal/ptcategory" maxlength="40"  label="平台类别-->其他" value="<x:out select="$xmlData/data/proposal/ptcategory" />">
				<input
			type="hidden" name="proposal/ptcategory_value" id="ptcategory_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/ptcategory_value" />"
			label="平台类别" /> <input type="hidden" name="proposal/ptcategory_name"
			id="ptcategory_name"
			value="<x:out select="$xmlData/data/proposal/ptcategory_name" />"
			label="平台类别" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>投资性质：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="nature_01"
				style="vertical-align: middle;" name="nature_type" label="政府主导建设"
				value="01" /><span style="vertical-align: middle;">政府主导建设</span></label> <label>
				<input type="radio" class="do " id="nature_02"
				style="vertical-align: middle;" name="nature_type" label="社会投资建设"
				value="02" /><span style="vertical-align: middle;">社会投资建设</span>
		</label> <input type="hidden" name="proposal/nature_type_value"
			id="nature_type_value" class="required"
			value="<x:out select="$xmlData/data/proposal/nature_type_value" />"
			label="投资性质" /> <input type="hidden"
			name="proposal/nature_type_name" id="nature_type_name"
			value="<x:out select="$xmlData/data/proposal/nature_type_name" />"
			label="投资性质" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>服务范围：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="service_01"
				style="vertical-align: middle;" name="service" label="全市" value="01"
				onclick="service('01')" /><span style="vertical-align: middle;">全市</span></label>
			<label> <input type="radio" class="do " id="service_02"
				style="vertical-align: middle;" name="service" label="区" value="02"
				onclick="service('02')" /></label><span style="vertical-align: middle;">
				<input name="proposal/service_area" label="区" type="text"
				class="input_css gray" disabled maxlength="100" id="service_area_02"
				onchange="setValue('service_area_02');"
				value="<x:out select="$xmlData/data/proposal/service_area" />" />区
		</span> <label> <input type="radio" class="do " id="service_03"
				style="vertical-align: middle;" name="service" label="开发区(园区、孵化器)"
				value="03" onclick="service('03')" /></label><span
			style="vertical-align: middle;"> <input
				name="proposal/dep_area" label="开发区" type="text"
				class="input_css  gray" disabled maxlength="100"
				id="service_area_03" onchange="setValue('service_area_03');"
				value="<x:out select="$xmlData/data/proposal/dep_area" />" />开发区(园区、孵化器)
		</span> <label> <input type="radio" class="do " id="service_04"
				style="vertical-align: middle;" name="service" label="其他" value="04"
				onclick="service('04')" /></label><span style="vertical-align: middle;">其他</span>
			<input id="service_area_04" name="proposal/other" label="其他"
			type="text" class="input_css  gray" disabled maxlength="20"
			onchange="setValue('service_area_04');"
			value="<x:out select="$xmlData/data/proposal/other" />" /> <input
			type="hidden" name="proposal/service_value" id="service_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/service_value" />"
			label="服务范围" /> <input type="hidden" name="proposal/service_name"
			id="service_name"
			value="<x:out select="$xmlData/data/proposal/service_name" />"
			label="服务范围" /></td>
	</tr>
	
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>服务领域：</td>
		<td colspan="3"><input
				type="radio" class="do " id="srevice_cate_01"
				style="vertical-align: middle;" name="srevice_cate" label="研发与设计服务 "
				value="01" /><span style="vertical-align: middle;">研发与设计服务 </span></label> <label>
				<input type="radio" class="do " id="srevice_cate_02"
				style="vertical-align: middle;" name="srevice_cate" label="检验测试服务"
				value="02" /><span style="vertical-align: middle;">检验测试服务</span>
		</label> <label> <input type="radio" class="do " id="srevice_cate_03"
				style="vertical-align: middle;" name="srevice_cate" label="综合信息咨询服务"
				value="03" /><span style="vertical-align: middle;">综合信息咨询服务</span></label> <input
			type="hidden" name="proposal/srevice_cate_value" id="srevice_cate_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/srevice_cate_value" />"
			label="服务领域" /> <input type="hidden" name="proposal/srevice_cate_name"
			id="srevice_cate_name"
			value="<x:out select="$xmlData/data/proposal/srevice_cate_name" />"
			label="服务领域" /></td>

	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>年服务收入（万元）：</td>
	<td ><input name="proposal/service_income"  id="service_income"   type="text" 
			class="input_css required " style="text-align: right" 
			onfocus="InitInput.setNumber(this,9,4,2)" label="年服务收入"
			value="<x:out select="$xmlData/data/proposal/service_income" />" /></td>
	 <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
	<td >
		<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
		<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
	</td>
	</tr>
	
	
	<%-- <tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr> --%>
	</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo2" cellspacing="1">
	<tr>
		<td colspan="8" class="t_bar2"><span class="color_red">*</span>人员构成情况（人）</td>

	</tr>

	<tr>

		<td align="right">职工总数（人）：</td>
		<td><input name="proposal/staff_totalex"  id="staff_total"   type="text" 
			class="input_css required gray" disabled="disabled" style="text-align: right" label="职工总数"
			value="<x:out select="$xmlData/data/organization_persons/people_count_total" />" /></td>
		<td align="right" colspan="2">大专以上学历者占职工总数（%）：</td>
		<td>
		<input name="proposal/junior_college_pre_pre" 
		label="100%" id="junior_college_pre_pre" value='100' type="hidden">
		<input name="proposal/junior_college_pre"  id="junior_college_pre"   type="text" 
			class="input_css required valueCompare:junior_college_pre:junior_college_pre_pre" style="text-align: right" 
			onfocus="InitInput.setNumber(this,9,2,2)" label="大专以上学历者占职工总数"
			value="<x:out select="$xmlData/data/proposal/junior_college_pre" />" /></td>
	</tr>
	<tr>

		<td align="right">研发人员数（人）：</td>
		<td><input name="proposal/research_staff"  id="research_staff"   type="text"  label="研发人员数"
			class="input_css valueGreatEqual:staff_total:research_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();"
			value="<x:out select="$xmlData/data/proposal/research_staff" />" /></td>
		<td align="right" colspan="2">研发人员数占职工总数（%）：</td>
		<td><input name="proposal/research_staff_pre"  id="research_staff_pre"   type="text" 
			class="input_css gray valueCompare:research_staff_pre:junior_college_pre_pre"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)" label="研发人员数占职工总数"
			value="<x:out select="$xmlData/data/proposal/research_staff_pre" />" /></td>
	</tr>
	
	<tr>

		<td align="right">专职技术服务人员数（人）：</td>
		<td><input name="proposal/technology_staff"  id="technology_staff"   type="text"  label="专职技术服务人员数"
			class="input_css valueGreatEqual:staff_total:technology_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();"
			value="<x:out select="$xmlData/data/proposal/technology_staff" />" /></td>
		<td align="right" colspan="2">专职技术服务人员数占职工总数（%）：</td>
		<td><input name="proposal/technology_staff_pre"  id="technology_staff_pre"   type="text" 
			class="input_css gray valueCompare:technology_staff_pre:junior_college_pre_pre"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)" label="专职技术服务人员数占职工总数"
			value="<x:out select="$xmlData/data/proposal/technology_staff_pre" />" /></td>
	</tr>

	<tr>
		<td align="right" rowspan="2">职工学历构成（人）：</td>
		<td align="center">大专</td>
		<td align="center">本科</td>
		<td align="center">硕士</td>
		<td align="center">博士</td>
	</tr>
	<tr>

		<td >
		    <input name="proposal/edu_total" id="edu_total" class="valueGreatEqual:staff_total:edu_total" type="hidden" label="职工学历构成总数" value="<x:out select="$xmlData/data/proposal/edu_total" />"/>
		    <input name="proposal/junior_college"  id="junior_college"   type="text" 
			class="input_css  required" style="text-align: right" label="大专"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/junior_college" />" /></td>
		<td><input name="proposal/undergraduate" id="undergraduate" type="text" 
			class="input_css required" style="text-align: right" label="本科"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/undergraduate" />" /></td>
		<td ><input name="proposal/master" id="master" type="text" 
			class="input_css required" style="text-align: right" label="硕士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/master" />" /></td>
		<td ><input name="proposal/doctor" id="doctor"  type="text" 
			class="input_css required" style="text-align: right" label="博士"
			onfocus="InitInput.setNumber(this,9,0,0)"
		    onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/doctor" />" /></td>
	</tr>

	<tr>
		<td align="right" rowspan="2">职工职称构成（人）：</td>
		<td align="center">助理级</td>
		<td align="center">初级</td>
		<td align="center">中级</td>
		<td align="center">高级</td>
	</tr>
	<tr>

		<td >
		<input name="proposal/assistant_total" id="assistant_total" label="职工职称构成总数" type="hidden" value="<x:out select="$xmlData/data/proposal/assistant_total" />"/>
		<input name="proposal/assistant_level"  id="assistant_level"   type="text" 
			class="input_css valueCompare:assistant_total:staff_total required" style="text-align: right" label="助理级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,lower_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/assistant_level" />" /></td>
		<td ><input name="proposal/lower_level"  id="lower_level"   type="text" 
			class="input_css required" style="text-align: right" label="初级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,lower_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/lower_level" />" /></td>
		<td ><input name="proposal/middle_level"  id="middle_level"   type="text" 
			class="input_css required" style="text-align: right" label="中级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,lower_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/middle_level" />" /></td>
		<td ><input name="proposal/high_level"  id="high_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="高级"
			onchange="countNum('','assistant_level,lower_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/high_level" />" /></td>
	</tr>

</table>
<div class="t_bar"><span class="color_red">*</span>平台主要设备设施</div>
<table  id="tblEuipments" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="60%">设备名称</th> 
				        <th class="TblHead" align="center"  width="15%">数量（台/套）</th> 
						<th class="TblHead" align="center"  width="15%">金额（万元）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments|euipment[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="euipments|euipment[0]|name" label="设备名称"  class=" input_text required" maxlength="50" style="width:80%"/>
						</td>
						
						<td>
							<input type="text" name="euipments|euipment[0]|amount" label="数量" onchange="autoCountFund();"  onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%" class=" input_text required" />
						</td> 
						<td>
							<input type="text" name="euipments|euipment[0]|money" label="金额" onchange="autoCountFund();"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%" class=" input_text required" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/euipments/euipment" var="euipment">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments/euipment[${flag}${index}]@seq_no" ><x:out select="$euipment/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="euipments/euipment[${flag}${index}]/name" label="设备名称"  style="width:80%"   class=" input_text required" value="<x:out select="$euipment/name" />" maxlength="50"/>
						</td>
						
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/amount" label="数量"  onchange="autoCountFund();"  onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$euipment/amount" />"/>
						</td> 
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/money" label="金额" onchange="autoCountFund();"  onfocus="InitInput.setNumber(this,7,4,2)"   style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$euipment/money" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<table cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="border-bottom: #a1c0dc 1px solid;">
					<tr>
						<td width="70%" align="center">合计</td>
						<td width="15%"><input type="text" name="euipmentexs/euipment/amount_count" id="amount_count"  onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%"  class="input_css gray " disabled value="<x:out select="$xmlData/data/euipmentexs/euipment/amount_count" />"/></td>
						<td width="15%"><input type="text" name="euipmentexs/euipment/money_count" id="money_count"  onfocus="InitInput.setNumber(this,7,4,2)"   style="text-align:right;width:80%"  class="input_css gray "  disabled value="<x:out select="$xmlData/data/euipmentexs/euipment/money_count" />"/></td>
					</tr>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblEuipments');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblEuipments','selEuipments')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblEuipments','selEuipments')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblEuipments','平台主要设备设施');autoCountFund();">
					</td></tr>
	</table>	
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo3">
	
	
	<tr>
		<td   colspan="6" class="t_bar2"><span class="color_red">*</span>申报项目资金情况</td>
		
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   colspan="5"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		
	</tr>
	<tr>
		<td align="right">平台计划投入资金总额（万元）：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="平台计划投入资金总额" type="text" class="input_css required valueCompare:finsh_budget:investment_budget"
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right">其中：已投入资金（万元）：</td>
		<td colspan="3"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="已投入资金" type="text" 
			class="input_css required"  style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>
	<tr>
	<td   align="right">申请金额（万元）：</td>
	    <td >
	    <input  name="proposal/sqje" id="sqje" class="input_css required " label="申请金额" type="text" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	    </td>
	    <td  align="right"  >项目核准或备案文号：</td>
		<td  colspan="3"  >
		<input  name="proposal/project_approval"  class="input_css required " label="项目核准或备案文号" type="text" value="<x:out select="$xmlData/data/proposal/project_approval" />"/>
		</td>
		
	</tr>
	
	<tr>
	<td  align="right">支持方式：</td>
		<td  >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市经济和信息化委员会</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td  align="right" nowrap>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function"/></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>


	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	
	<tr>
		<td    class="t_bar2" colspan="4">合作参与单位信息</td>
		
	</tr>
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息1</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<br/>
<div class="t_bar">人员信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
	/* setCompanyStatus('scope_02','area');
	setCompanyStatus('scope_03','kfarea');
	setCompanyStatus('scope_04','other'); */
	service($("#service_value").val());
	changePTCategory();
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

/* function setCompanyStatus(id1,id2){
	if($("#"+id1).is(":checked")){
		$("#"+id2).removeClass("gray");
		$("#"+id2).attr("disabled",false);
	}
	if(!$("#"+id1).is(":checked")){
		$("#"+id2).addClass("gray");
		$("#"+id2).attr("disabled",true);
		$("#"+id2).val("");
	}
} */
/* function saveValue(){
	var str = "";
	$("#terracescope_name").val("");
	if($("#scope_01").is(":checked")){
		str = "全市";
	}
	if($("#scope_02").is(":checked")){
	    str = $.trim(str) +"，"+ $.trim($("#area").val())+"区";
	}
	if($("#scope_03").is(":checked")){
		str = $.trim(str) +"，"+ $.trim($("#kfarea").val())+"开发";
	}
	if($("#scope_04").is(":checked")){
		str = $.trim(str) +"，"+"其他："+ $.trim($("#other").val());
	}
 	$("#terracescope_name").val(str);
} */

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}
function setValue(id){
	if("service_area_02" == id){
		$("#service_name").val($("#"+id).val()+"区");
	}
	if("service_area_03" == id){
		$("#service_name").val($("#"+id).val()+"开发区");
	}
	if("service_area_04" == id){
		$("#service_name").val("其他："+$("#"+id).val());
	}
}

function setPre(){
	var  teach_staff=$("#research_staff").val();
	var technology_staff = $("#technology_staff").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#research_staff_pre").val("0.00");
    	$("#technology_staff_pre").val("0.00");
    }else{
    	 $("#research_staff_pre").val(formatVal(teach_staff*100/staff_total));
    	 $("#technology_staff_pre").val(formatVal(technology_staff*100/staff_total));
    }
   
	
}
function changePTCategory() {
	var val = $("#ptcategory_value").val();
	var classAttr = "input_css";
	if(val == '03') {
		$("#ptcategory").attr("style","display:");
		$("#ptcategory").attr("class", classAttr+" required");
	} else {
		$("#ptcategory").attr("style","display:none");
		$("#ptcategory").attr("class", classAttr);
		$("#ptcategory").val("");
	}
}

function setPre1(){
	var  teach_staff=$("#research_num").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#proportion").val("0.00");
    }else{
    $("#proportion").val(formatVal(teach_staff*100/staff_total));
    }
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}

function autoCountFund() {
	 var count3=0;
	 var count2=0;
	$("#tblEuipments tr:gt(1)").each(function() {
		var fund = $(this).children().eq("3").children().val();
		var fund3 = $(this).children().eq("4").children().val();
		if (!$.isNumeric(fund))  fund = "0";
		if (!$.isNumeric(fund3))  fund3 = "0";
		count2 = formatNumberAuto((parseFloat(fund)+parseFloat(count2))+"",9,0,0);
		count3 = formatNumberAuto((parseFloat(fund3)+parseFloat(count3))+"",9,4,2);
	});
	$("#amount_count").val(count2);
	$("#money_count").val(count3);
}

function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

</script>

